<template>
    <div>
        <span>
            用户总量:
        </span>
        <span>
            {{ num }}
        </span>
    </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { GetUserList } from '@/api'
const num = ref('')


onMounted(async () => {
    const res = await GetUserList() as any
    console.log(res);
    if (res.code === '200') {
        num.value = res.data
    } else if (res.code === '10119') {
        
    }
})
</script>

<style lang="scss" scoped></style>
